package components.scanario.scenaries
{
	import UIFree.ObjectEvent;
	
	import classes.c_events;
	
	import components.scanario.c_scenarioManager;
	
	import flash.events.EventDispatcher;
	
	public class c_baseScenario extends c_scenarioManager {
		private var _workspace: EventDispatcher;
		public function c_baseScenario(a_workspace: EventDispatcher) {
			super();
			_workspace = a_workspace;
			createScenario();
			_workspace.dispatchEvent(new ObjectEvent(c_events.SETSCENARIO, this));
		}
		
		public function get workspace(): EventDispatcher {
			return _workspace;
		}
		
		override public function get endDesc(): String {
			return 'Отлично, вы справились с заданием!';
		}
		
		protected function createScenario(): void {
			
		}
	}
}